import request from '@/utils/request'

export function adminsList(params) {
  return request({
    url: 'administrators/lists',
    method: 'get',
    params
  })
}

export function createAdmin(params) {
  return request({
    url: 'administrators/store',
    method: 'post',
    params
  })
}

export function updateAdmin(params) {
  return request({
    url: 'administrators/update',
    method: 'post',
    data:params
  })
}


export function deleteAdmin(params) {
  return request({
    url: 'administrators/destroy',
    method: 'post',
    params
  })
}








export function getPermissions(params) {
  return request({
    url: 'administrators/getPermission',
    method: 'post',
    data:params
  })
}

export function setPermissions(params) {
  return request({
    url: 'administrators/setPermission',
    method: 'post',
    data:params
  })
}


